package org.example.enums;

public enum AppHttpCodeEnum {

    LOGIN_PASSWORD_ERROR(2,"用户名或密码错误"),
    // 参数错误 500~1000
    PARAM_REQUIRE(500,"缺少参数"),
    PARAM_INVALID(501,"无效参数"),
    SERVER_ERROR(503,"服务器内部错误"),
    // 数据错误 1000~2000
    AP_USER_DATA_NOT_EXIST(1001,"用户数据不存在"),
    DATA_NOT_EXIST(1002,"数据不存在"),
    // 数据错误 3000~3500
    USER_STATUS_ERROR(1008,"该账号状态异常，请联系管理员！" ),
    FAILURE_ERROR(1010,"操作失败，请稍后重试" ),;


    int code;
    String errorMessage;

    AppHttpCodeEnum(int code, String errorMessage){
        this.code = code;
        this.errorMessage = errorMessage;
    }
    public int getCode() {
        return code;
    }
    public String getErrorMessage() {
        return errorMessage;
    }
}
